<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="tags" tagdir="/WEB-INF/tags"
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"
%><%@ taglib prefix="spring" uri="http://www.springframework.org/tags"
%><%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"
%><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
%><head>
	<title><fmt:message key="address" /></title>
</head>
<body>
	<c:url value="/domain/address/create" var="createUrl"/>
	<form:form action="${createUrl}" modelAttribute="address" method="POST">
		<form:errors cssClass="error"/>
		<table class="edit">
			<form:hidden path="addressId"/>
			<form:hidden path="version"/>
			<tbody>
				<tr>
					<th><fmt:message key="address_streetName" /></th>
					<td>
						<form:input path="streetName" cssClass="{maxlength: 255}"/>
						<form:errors path="streetName" cssClass="error"/>
					</td>
				</tr>
				<tr class="odd">
					<th><fmt:message key="address_city" /> <em>*</em></th>
					<td>
						<form:input path="city" cssClass="required {maxlength: 255}"/>
						<form:errors path="city" cssClass="error"/>
					</td>
				</tr>
			</tbody>
			<tfoot>
				<tr>
					<td colspan="2">
						<tags:button type="submit" key="crud.save.button" icon="ok"/>
					</td>
				</tr>
			</tfoot>
		</table>
	</form:form>
</body>
